﻿<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Script file="GameTooltips.lua" />
  <Frame name="AOSSControlsGameTooltips" inherits="AOSSPanelTemplate">
    <Size>
      <AbsDimension x="400" y="400"/>
    </Size>
    <Anchors>
      <Anchor point="TOPLEFT" />
    </Anchors>    
    <Frames>
      <SimpleHTML name="ButtonsSimpleHTML" inherits="ControlsSimpleHTMLTemplate" file="Interface\AddOns\AddOnStudioSamples\Controls\GameTooltips.html" />

      <Button name="GamTooltipDemoButton">
        <Size x="100" y="100" />
        <Anchors>
          <Anchor point="TOPLEFT" >
            <Offset x="140" y="-820" />
          </Anchor>          
        </Anchors>
        <Layers>
          <Layer level="OVERLAY">
            <Texture name="GameTooltipDemoTexture" file="Interface\GLUES\MainMenu\Glues-BlizzardLogo">
              <Size x="64" y="64" />
              <Anchors>
                <Anchor point="TOPLEFT" />
                <Anchor point="BOTTOMRIGHT" />
              </Anchors>
            </Texture>
          </Layer>
        </Layers>
        <Scripts>
          <OnEnter>
            GameTooltip:SetOwner(self, "ANCHOR_RIGHT", 0, -20);
            GameTooltip:SetText("Blizzard Entertainment", nil, nil, nil, nil, 1);
          </OnEnter>
          <OnLeave>
            GameTooltip:Hide();
          </OnLeave>
        </Scripts>
      </Button>
    </Frames>
      <Scripts>
      <OnLoad>
        AOSSControlsGameTooltips_OnLoad(self)
      </OnLoad>
    </Scripts>
  </Frame>
</Ui>